import { IpcHandler, IpcInvoke } from '@main/decorator/ipc.decorator'
import { Injectable } from '@nestjs/common'
import { createDirIfNotExist } from '@main/utils/fileUtil'
@IpcHandler('file')
@Injectable()
export class FileApi {
  @IpcInvoke('createDirIfNotExist')
  createDirIfNotExist(dirPath: string): string | undefined {
    return createDirIfNotExist(dirPath)
  }
}
